package com.right.dao;


import java.util.List;

import com.Tools.PageData;
import com.right.entity.Foods;
import com.right.entity.Store;

public interface FoodsDao {
	//增加菜品
	public boolean addFoods(Foods foods);
	//删除菜品
	public boolean delFoods(int foodsid);
	//修改菜品
	public boolean updateFoods(Foods foods);
	//查询菜品
	//全部
//	public List<Foods> getFoods();
	public PageData<Foods> getFoodsPage(int page, int pageSize, String keywords);
	//单个
	public Foods getOneFoods(String str);
	
	public Store getStoreByFoodsName(String keywords);
	
	public Store getStoreByFoods(String keywords);
	
	public List<Foods> getFoods(String keywords);
	
	public List<Foods> getFoodsByStore(String store);
	//根据id查询菜品信息
	public Foods getFoodsByFoodsid(int foodsid);
	//根据商家名查询商家菜品
	public PageData<Foods> getFoodsByStorePage(int page, int pageSize, String keywords);
}